package com.woniuxy.dudugua.service.impl;

import com.woniuxy.dudugua.entity.Comment;
import com.woniuxy.dudugua.mapper.CommentMapper;
import com.woniuxy.dudugua.service.CommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CommentServiceImpl implements CommentService {
    @Resource
    private CommentMapper commentMapper;
    @Override
    public List<Comment> selectByProductId(Integer id) {
        return commentMapper.selectByProductId(id);
    }
}
